<?php

namespace App\Models;

use App\Traits\HasDateTimeFormatter;
use App\Traits\HasLoan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LoanMortgageHouse extends Model
{
    use HasFactory, HasDateTimeFormatter, HasLoan;

    protected $table = "loan_mortgage_house";

    const TEMPLATE_HEADER = [
        "apply_at" => "申请时间",
        "name" => "称呼",
        "mobile" => "用户联系电话",
        "amount" => "贷款额度",
        "need_home_service" => "是否需要上门",
        "addr" => "详细地址",
        "type" => "房屋类型",
        "has_certificate" => "是否持有房产证",
        "ownership" => "房屋所有权",
        "latest_estimated" => "房子最新评估价",
    ];

    protected $fillable = [
        "type",
        "has_certificate",
        "ownership",
        "latest_estimated",
    ];

}
